package com.csun.cmny.provider.dto;

import com.csun.cmny.provider.validator.OmcOrderServiceItemAddValidator;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
public class OrderServiceItemDto implements Serializable {

    /*
    * id
    * */
    private Long id;

    /**
     * 订单id
     */
    @NotNull(message = "{orderItem.orderId.null}",
            groups = {OmcOrderServiceItemAddValidator.class})
    private Long orderId;

    /**
     * 服务项id
     */
    @NotNull(message = "{orderItem.serviceItem.null}",
            groups = {OmcOrderServiceItemAddValidator.class})
    private Long serviceItemId;

    /**
     * 视频、图片url
     */
    private String url;

    /**
     * 异常报告内容
     */
    private String reportContent;

    /*
    * 异常报告内容List
    * */
    private List<OrderServiceItemContentDto> orderServiceItemContentDtos;
}
